package com.salary.entity.dto;

import java.util.ArrayList;
import java.util.List;

import com.salary.entity.SalaryFormula;

public class SalaryFormulaDTO {
	private Long id;
	private String tips1;
	private String mark1;
	private float days;
	private String mark2;
	private float param;
	private String mark3;
	private String tips2;
	private Integer countDay;

	public String getMark3() {
		return mark3;
	}

	public void setMark3(String mark3) {
		this.mark3 = mark3;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTips1() {
		return tips1;
	}

	public void setTips1(String tips1) {
		this.tips1 = tips1;
	}

	public String getMark1() {
		return mark1;
	}

	public void setMark1(String mark1) {
		this.mark1 = mark1;
	}

	public float getDays() {
		return days;
	}

	public void setDays(float days) {
		this.days = days;
	}

	public float getParam() {
		return param;
	}

	public void setParam(float param) {
		this.param = param;
	}

	public String getMark2() {
		return mark2;
	}

	public void setMark2(String mark2) {
		this.mark2 = mark2;
	}

	public String getTips2() {
		return tips2;
	}

	public void setTips2(String tips2) {
		this.tips2 = tips2;
	}

	public Integer getCountDay() {
		return countDay;
	}

	public void setCountDay(Integer countDay) {
		this.countDay = countDay;
	}

	public static List<SalaryFormulaDTO> getFormula(SalaryFormula formula) {
		// ×
		List<SalaryFormulaDTO> list = new ArrayList<SalaryFormulaDTO>();
		SalaryFormulaDTO dto1 = new SalaryFormulaDTO();
		dto1.setId(1L);
		dto1.setTips1(" 缺 勤 扣 款=基本工资");
		dto1.setMark1("/");
		dto1.setDays(formula.getDays());
		dto1.setMark2("×");
		dto1.setParam(formula.getAbsenceIdx());
		dto1.setMark3("×");
		dto1.setTips2("缺勤天数");
		dto1.setCountDay(formula.getCountDay());
		list.add(dto1);
		//
		SalaryFormulaDTO dto2 = new SalaryFormulaDTO();
		dto2.setId(2L);
		dto2.setTips1(" 请 假 扣 款=基本工资");
		dto2.setMark1("/");
		dto2.setDays(formula.getDays());
		dto2.setMark2("×");
		dto2.setParam(formula.getLeaveIdx());
		dto2.setMark3("×");
		dto2.setTips2("请假天数");
		list.add(dto2);
		//
		SalaryFormulaDTO dto3 = new SalaryFormulaDTO();
		dto3.setId(3L);
		dto3.setTips1("平时加班工资=基本工资");
		dto3.setMark1("/");
		dto3.setDays(formula.getDays());
		dto3.setMark2("×");
		dto3.setParam(formula.getUsualOTIdx());
		dto3.setMark3("×");
		dto3.setTips2("加班天数");
		list.add(dto3);
		//
		SalaryFormulaDTO dto4 = new SalaryFormulaDTO();
		dto4.setId(4L);
		dto4.setTips1("周末加班工资=基本工资");
		dto4.setMark1("/");
		dto4.setDays(formula.getDays());
		dto4.setMark2("×");
		dto4.setParam(formula.getWkdOTIdx());
		dto4.setMark3("×");
		dto4.setTips2("加班天数");
		list.add(dto4);
		//
		SalaryFormulaDTO dto5 = new SalaryFormulaDTO();
		dto5.setId(5L);
		dto5.setTips1("法定加班工资=基本工资");
		dto5.setMark1("/");
		dto5.setDays(formula.getDays());
		dto5.setMark2("×");
		dto5.setParam(formula.getLvOTIdx());
		dto5.setMark3("×");
		dto5.setTips2("加班天数");
		list.add(dto5);
		//
		SalaryFormulaDTO dto6 = new SalaryFormulaDTO();
		dto6.setId(6L);
		dto6.setTips1(" 绩 效 工 资=基本工资");
		dto6.setMark1("/");
		dto6.setDays(formula.getPerfIdx1());
		dto6.setMark2("×");
		dto6.setParam(formula.getPerfIdx2());
		dto6.setMark3("×");
		dto6.setTips2("绩效考核结果");
		list.add(dto6);
		return list;
	}

}
